package cn.iocoder.yudao.module.picturebook.controller.admin.readingrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户阅读记录新增/修改 Request VO")
@Data
public class ReadingRecordSaveReqVO {

    @Schema(description = "阅读记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7580")
    private Long id;

    @Schema(description = "关联用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "19742")
    @NotNull(message = "关联用户不能为空")
    private Long userId;

    @Schema(description = "关联书籍", requiredMode = Schema.RequiredMode.REQUIRED, example = "18594")
    @NotNull(message = "关联书籍不能为空")
    private Long bookId;

    @Schema(description = "阅读日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDate readDate;

    @Schema(description = "阅读时长（分钟）")
    private Integer duration;

}